package com.mls.fivedistrict.dao;

import com.mls.fivedistrict.pojo.*;
import org.apache.ibatis.annotations.Param;

import java.util.*;

/**
 * Created by nanji on 2018/3/21.
 */
public interface ReportMapper {
    List<Report> getEveryUserReport(@Param("params") Map<String, Date> params);

//    List getUserIntegralReports(@Param("params") Map<String, String> params, @Param("pageNum") int i, @Param("pageSize") int pageSize);

    List<RecordUserCalculate> getUserCalculateReports(@Param("params") Map<String, Object> params);

    double getSumUserCalculateReports(@Param("params") Map<String, Object> params);

    List<RecordUserTask> getUserTaskReports(@Param("params") Map<String, Object> params);

//    double getSumUserTaskReports(@Param("params") Map<String, Object> params);

    List<Record> getUserIntegralReports(@Param("params") Map<String, Object> params);

    double getSumUserIntegralReports(@Param("params") Map<String, Object> params);

    int getUserIntegralReportsCount(@Param("params") Map<String, Object> params);

    List<Record> getUserIntegralReceiverReports(@Param("params") Map<String, Object> params);

    int getUserIntegralReceiverReportsCount(@Param("params") Map<String, Object> params);

    double getDwqUserSum();

    List<Property> getUserPropertyReports(@Param("params") Map<String, Object> params);

    double getSumUserPropertyReports(@Param("params") Map<String, Object> params);

}
